const {mapKeys,zipObject,keys} = require("lodash");
//###################################
// 模拟接口
//###################################
let APIData={
  ...require("./baseData/area-book-controller"),
  ...require("./baseData/book-controller"),
  ...require("./template/template"),
  ...require("./9020/business-controller"),
  ...require("./9020/curr-table-controller"),
  ...require("./9005/auth-api"),
}





//整理API和router
API=mapKeys(APIData,(value,key)=>key.replace(/\//g,'_'));
console.log(API);
let Router=zipObject(keys(APIData).map(item=>item+'?*'),keys(API).map(item=>'/'+item));
console.log("#-API接口路由-#####################")
console.log("")
console.log(Router)
console.log("")
console.log("#-API接口路由- -END- ##################################")
console.log("")
module.exports = {API,Router};

/* 
const Random = Mock.Random;
例如：Random.id()

Basics:	boolean, natural, integer, float, character, string, range, date, time, datetime, now
Image:	image, dataImage
Color:	color
Text:	paragraph, sentence, word, title
Name:	first, last, name
Web:	url, domain, email, ip, tld
Address:	area, region
Helpers:	capitalize, upper, lower, pick, shuffle
Miscellaneous:	guid, id
*/